package data.nanjing.expo.models.domain.dto.exhibition;

import data.nanjing.expo.common.DateTimeUtil;
import data.nanjing.expo.common.Util;

import java.util.Date;

/**
 * 展会基本信息
 *
 * @author ChanJi
 * @create 2018-06-24 13:42
 **/
public class ExhibitionDto {
    /**
     * 展会id
     */
 private Integer id;
    /**
     * 用户id
     */
 private String userId;
    /**
     * 展会名称
     */
 private String expoName;
    /**
     * 省
     */
    private String province;
    /**
     * 市
     */
    private String city;
    /**
     * 区
     */
    private String area;

    /**
     * 街道地址
     */
    private String street;
    /**
     * 举办地点
     */
    private String location;
    /**
     * 开始时间
     */
    private Date startTime;
    /**
     * 结束时间
     */
    private Date endTime;
    /**
     * 展会行业
     */
    private String expoScope;

    /**
     * 公司官网地址
     */
    private String officialUrl;
    /**
     * 橱窗图
     */
    private String expoImg;
    /**
     * 橱窗图key
     */
    private String key;

    /**
     * 展位数
     */
    private Integer standTotal;
    /**
     *展会描述
     */
    private String expoResume;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getExpoName() {
        return expoName;
    }

    public void setExpoName(String expoName) {
        this.expoName = expoName;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Integer getStandTotal() {
        return standTotal;
    }

    public void setStandTotal(Integer standTotal) {
        this.standTotal = standTotal;
    }

    public String getStartTime() {
        return DateTimeUtil.dateFormat(startTime,DateTimeUtil.MINUTE_PATTERN);
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return DateTimeUtil.dateFormat(endTime,DateTimeUtil.MINUTE_PATTERN);
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getExpoScope() {
        return expoScope;
    }

    public void setExpoScope(String expoScope) {
        this.expoScope = expoScope;
    }

    public String getOfficialUrl() {
        return officialUrl;
    }

    public void setOfficialUrl(String officialUrl) {
        this.officialUrl = officialUrl;
    }

    public String getExpoImg() {
        return Util.getFinalFilePath(expoImg,"380","236");
    }

    public void setExpoImg(String expoImg) {
        this.expoImg = expoImg;
    }

    public String getKey() {
        return expoImg;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getExpoResume() {
        return expoResume;
    }

    public void setExpoResume(String expoResume) {
        this.expoResume = expoResume;
    }

    @Override
    public String toString() {
        return "ExhibitionDto{" +
                "id=" + id +
                ", userId='" + userId + '\'' +
                ", expoName='" + expoName + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", area='" + area + '\'' +
                ", street='" + street + '\'' +
                ", location='" + location + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", expoScope='" + expoScope + '\'' +
                ", officialUrl='" + officialUrl + '\'' +
                ", expoImg='" + expoImg + '\'' +
                ", standTotal=" + standTotal +
                ", expoResume='" + expoResume + '\'' +
                '}';
    }
}
